<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>

</head>
<body>
	<video width="500" height="" poster="poster.jpg" id="video">
		<source src="b.mp4" />
	</video>
	<br />
	<a href="javascript:;" id="play">点击播放</a>
	<a href="javascript:;"id="stop">暂停</a>
	<a href="javascript:;" id="tui">快退</a>
	<a href="javascript:;"id="time">快进</a>
	
	<script type="text/javascript">
		var media=document.getElementById("video");
		document.getElementById("play").onclick = function(){
//			alert(1);
		media.play();
		}
		document.getElementById("stop").onclick=function(){
			media.pause();
//			alert(1);
		}
		document.getElementById("time").onclick=function(){
			media.currentTime+=2;
//			alert(1);
		}
		document.getElementById("tui").onclick=function(){
			media.currentTime-=2;
//			alert(1);
		}
	</script>
</body>
</html>
